package com.loadburn.heron.render;

import com.google.inject.ImplementedBy;
import com.google.inject.servlet.RequestScoped;

import java.util.Map;

/**
 * @author slacrey (scstlinfeng@yahoo.com)
 *         Date: 14-1-11
 */
public interface RedirectAttributes {

    RedirectAttributes addAttribute(String attributeName, Object attributeValue);

    RedirectAttributes addAllAttributes(Map<String, ?> attributes);

    RedirectAttributes mergeAttributes(Map<String, ?> attributes);

    boolean containsAttribute(String attributeName);

    Map<String, Object> asMap();

    RedirectAttributes addFlashAttribute(String attributeName, Object attributeValue);

    RedirectAttributes addAllFlashAttribute(Map<String, ?> attributes);

    Map<String, ?> getFlashAttributes();

}
